package com.demo.vueservice.common.util;

/**
 * 状态返回实体类
 * @author zhangliangliang
 */
public class ResultObj {
    //  状态码
    private int code;

    // 信息
    private String msg;

    // 数据
    private Object data;

    public int getCode() {
        return code;
    }

    public ResultObj setCode(ResultCode code) {
        this.code = code.getCode();
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public ResultObj setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getData() {
        return data;
    }

    public ResultObj setData(Object data) {
        this.data = data;
        return this;
    }

    public ResultObj() {
    }

}
